<template>
  <div class="main-bar">
    <form action="#">
      <a href="/home" class="logo"></a>
      <div class="sou">
      <i></i>
      </div>
      <router-link
      to="/search"
      class="link"
       >
      <input
       type="text"
       placeholder="搜索商品, 共119916款好物"
       >
       </router-link>
      <button>登录</button>
    </form>
  </div>
</template>

<script>
export default {
  name: 'MainBar',
  data() {
    return {
      value: '',
    }
  },
}
</script>

<style lang="less" scoped>
.main-bar {
    height: 30px;
    align-items: center;
    padding: 5px 10px;
    form{
      height: 30px;
      display: flex;
      .logo{
        display: inline-block;
        width: 70px;
        height: 20px;
        margin-top: 5px;
        margin-right: 10px;
        background: url(../../assets/1.png) no-repeat -63px -125px;
      }
      .sou{
         width: 30px;
         height: 30px;
         background-color: #ededed;
        i{
          width: 15px;
          height: 15px;
          margin-top: 5px;
          display: inline-block;
          margin-left: 10px;
          background:url(../../assets/2.png) no-repeat -70px -28px;
        }
      }
      input{
        flex: 1;
        font-size: 14px;
        background-color: #ededed;
        border: none;
        outline: none;
      }
      button{
        width: 50px;
        font-size: 12px;
        height: 30px;
        margin-left:10px;
        background-color: #fff;
        color: #dd1a21;
        border: 1px solid #dd1a21;
        border-radius: 5px;
      }
    }
}
 .link{
  background-color: #ededed;
}
</style>
